﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RecipeRecommender
{
    class CIngredient
    {
        private String strName;
        private String strValue;
        public CIngredient(String name, String value)
        {
            strName = name;
            strValue = value;
        }

        public CIngredient(String name)
        {
            strName = name;
            
        }
        public String getString() { return strName; }
    }
    class CVegetable : CIngredient 
    {
        public CVegetable(String strName):base (strName)
        {
            
        }
        public CVegetable():base("Vegetable")
        {
            
        }
    }

    class CSpinach : CVegetable
    {
        public CSpinach():base("Spinach")
        {
            
        }
    }
    class CCabbage : CVegetable
    {
        public CCabbage()
            : base("Cabbage")
        {

        }
    }
    class CMeat : CIngredient
    {
        public CMeat(String strName)
            : base(strName)
        {

        }
        public CMeat()
            : base("Meat")
        {

        }
    }

    class CChicken : CMeat
    {
        public CChicken()
            : base("Chicken")
        {

        }
    }

    class CBeef : CMeat
    {
        public CBeef()
            : base("Beef")
        {

        }
    }

    class CPork : CMeat
    {
        public CPork()
            : base("Pork")
        {

        }
    }
}
